﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp4
{
    public enum Shoptype
    {
        weapon,
        materials,
        food
    }
    class Shop : NPC
    {
        private string weapon;
        private string materials;
        private string food;

        public string Weapon
        {
            get { return this.weapon; }
            set { this.weapon = value; }
        }
        public string Materials
        {
            get { return this.materials; }
            set { this.materials = value; }
        }
        public string Food
        {
            get { return this.food; }
            set { this.food = value; }
        }


        public Shop(string name, Type type, string weapon) : base(name, type)
        {
            this.weapon = weapon;
        }

        public override void Say()
        {
            Console.WriteLine("你好，NPC:{0}，帮我{1}", this.Name, this.weapon);
        }
    }
}
